import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import axios from "axios";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import Particles from "particles.vue3";
import * as ElIcons from "@element-plus/icons-vue";
import "animate.css";
import "animate.css/animate.compat.css";
import "animate.css/animate.min.css";
import "wow.js/css/libs/animate.css";
import vue3videoPlay from "vue3-video-play"; // 引入组件
import "vue3-video-play/dist/style.css"; // 引入css
import fetchJsonp from "fetch-jsonp";
const app = createApp(App);
app.config.globalProperties.$axios = axios;
app.config.globalProperties.fetchJsonp = fetchJsonp;
// axios.defaults.baseURL = "http://127.0.0.1:8000";
for (const name in ElIcons) {
  app.component(name, (ElIcons as any)[name]);
}
app
  .use(vue3videoPlay)
  .use(Particles)
  .use(ElementPlus)
  .use(store)
  .use(router)
  .mount("#app");
